package com.spring.learn.springboot._01;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * bean创建完毕后的操作
 * bean销毁的操作
 */
public class BeanInitAndClose03 {


    @PostConstruct
    public void init() throws Exception {
        System.out.println("bean初始化完毕");
    }


    @PreDestroy
    public void destroy() throws Exception {
        System.out.println("bean销毁完毕");

    }

}
